import {createApp} from 'vue'
import 'virtual:svg-icons-register';
import router from '@/router';
import store from '@/store';
import App from './App.vue';
import SvgIcon from './components/SvgIcon/index.vue';
import '@/styles/index.scss';
import handleRouterPermission from '@/utils/permission';


const app = createApp(App)
app.use(router)
app.use(store)
app.component('svg-icon', SvgIcon)

handleRouterPermission(router);

router.isReady().then(() => {
    app.mount('#app');
});
